package com.neuralnoise.hibernate.flickr;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class AbstractProfile implements java.io.Serializable {

	private static final long serialVersionUID = 7417744533338876755L;

	private String user;
	
	private String userName;
	private String name;
	private String location;

	public AbstractProfile() { }

	public AbstractProfile(String user) {
		this.user = user;
	}

	public AbstractProfile(String user, String userName, String name, String location) {
		this.user = user;
		this.userName = userName;
		this.name = name;
		this.location = location;
	}
	
	@Id
	@Column(name = "user", unique = true, nullable = false, length = 32)
	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	@Column(name = "userName", nullable = true, length = 32)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "name", nullable = true, length = 32)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Column(name = "location", nullable = true, length = 32)
	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
	
}
